.class public Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;
.super Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
.source "ESFloatingActionButton.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$d;,
        Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;,
        Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$f;
    }
.end annotation


# instance fields
.field private A:Landroid/graphics/Bitmap;

.field private B:Z

.field private C:Z

.field private D:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;

.field private E:I

.field private F:Z

.field private G:I

.field private H:I

.field private I:I

.field private J:I

.field private K:Z

.field private L:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$d;

.field private M:I

.field private N:I

.field private O:Ljava/lang/Runnable;

.field private P:Ljava/lang/Runnable;

.field private a:Z

.field private b:Ljava/lang/String;

.field private c:F

.field private d:F

.field private e:F

.field private f:F

.field private g:F

.field private h:Z

.field private i:I

.field private j:Ljava/text/DecimalFormat;

.field private k:[Ljava/lang/String;

.field private l:Landroid/graphics/RectF;

.field private m:Landroid/graphics/Paint;

.field private n:Landroid/graphics/Paint;

.field private o:Landroid/graphics/Paint;

.field private p:I

.field private q:F

.field private r:F

.field private s:I

.field private t:F

.field private u:F

.field private v:I

.field private w:Landroid/content/res/ColorStateList;

.field private x:Landroid/content/res/ColorStateList;

.field private y:F

.field private z:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    .line 2
    invoke-direct {p0, p1, p2, v0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 6

    .line 3
    invoke-direct {p0, p1, p2, p3}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const/4 v0, 0x0

    .line 4
    iput-boolean v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->a:Z

    const-string v1, "%"

    .line 5
    iput-object v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->b:Ljava/lang/String;

    const/high16 v1, 0x43870000    # 270.0f

    .line 6
    iput v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->c:F

    const/high16 v1, 0x3f800000    # 1.0f

    .line 7
    iput v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->d:F

    const/4 v1, 0x0

    .line 8
    iput v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->e:F

    .line 9
    iput v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->f:F

    .line 10
    iput v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->g:F

    const/4 v1, 0x1

    .line 11
    iput-boolean v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->h:Z

    const/16 v2, 0x50

    .line 12
    iput v2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->i:I

    .line 13
    new-instance v2, Ljava/text/DecimalFormat;

    const-string v3, "###,###,###,##0"

    invoke-direct {v2, v3}, Ljava/text/DecimalFormat;-><init>(Ljava/lang/String;)V

    iput-object v2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->j:Ljava/text/DecimalFormat;

    const/4 v2, 0x0

    .line 14
    iput-object v2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->k:[Ljava/lang/String;

    .line 15
    new-instance v3, Landroid/graphics/RectF;

    invoke-direct {v3}, Landroid/graphics/RectF;-><init>()V

    iput-object v3, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->l:Landroid/graphics/RectF;

    const/4 v3, -0x1

    .line 16
    iput v3, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->p:I

    .line 17
    invoke-virtual {p0}, Landroid/widget/ImageButton;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const/high16 v5, 0x3fc00000    # 1.5f

    invoke-static {v4, v5}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$f;->a(Landroid/content/res/Resources;F)F

    move-result v4

    iput v4, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->q:F

    .line 18
    invoke-virtual {p0}, Landroid/widget/ImageButton;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const/high16 v5, 0x40c00000    # 6.0f

    invoke-static {v4, v5}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$f;->a(Landroid/content/res/Resources;F)F

    move-result v4

    iput v4, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->r:F

    .line 19
    iput v3, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->s:I

    const/high16 v4, 0x41200000    # 10.0f

    .line 20
    iput v4, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->t:F

    const v4, 0x3f4ccccd    # 0.8f

    .line 21
    iput v4, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->u:F

    const/16 v4, 0x3e8

    .line 22
    iput v4, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->v:I

    .line 23
    iput-object v2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->w:Landroid/content/res/ColorStateList;

    .line 24
    iput-object v2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->x:Landroid/content/res/ColorStateList;

    const/high16 v5, 0x3f400000    # 0.75f

    .line 25
    iput v5, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->y:F

    .line 26
    iput v3, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->z:I

    .line 27
    iput-object v2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->A:Landroid/graphics/Bitmap;

    .line 28
    iput-boolean v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->B:Z

    .line 29
    iput-boolean v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->C:Z

    .line 30
    iput v4, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->E:I

    .line 31
    iput-boolean v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->F:Z

    .line 32
    iput-boolean v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->K:Z

    .line 33
    iput v4, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->M:I

    .line 34
    iput v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->N:I

    .line 35
    new-instance v1, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$a;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$a;-><init>(Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;)V

    iput-object v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->O:Ljava/lang/Runnable;

    .line 36
    new-instance v1, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$b;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$b;-><init>(Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;)V

    iput-object v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->P:Ljava/lang/Runnable;

    .line 37
    :try_start_0
    sget-object v1, Lcom/estrongs/android/pop/n;->FloatingActionButton:[I

    const v2, 0x7f12026c

    invoke-virtual {p1, p2, v1, p3, v2}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;

    move-result-object p1

    const/4 p2, 0x5

    .line 38
    invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getInt(II)I

    move-result p2

    iput p2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->N:I

    .line 39
    invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 40
    :catch_0
    invoke-direct {p0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->b()V

    return-void
.end method

.method private a(Landroid/graphics/Canvas;)V
    .locals 4

    .line 3
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->g:F

    iget v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->f:F

    mul-float v0, v0, v1

    iget v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->d:F

    div-float/2addr v0, v1

    float-to-int v0, v0

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->k:[Ljava/lang/String;

    array-length v2, v1

    if-ge v0, v2, :cond_0

    .line 5
    aget-object v0, v1, v0

    invoke-virtual {p0}, Landroid/widget/ImageButton;->getWidth()I

    move-result v1

    div-int/lit8 v1, v1, 0x2

    int-to-float v1, v1

    .line 6
    invoke-virtual {p0}, Landroid/widget/ImageButton;->getHeight()I

    move-result v2

    div-int/lit8 v2, v2, 0x2

    int-to-float v2, v2

    iget-object v3, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->n:Landroid/graphics/Paint;

    invoke-virtual {v3}, Landroid/graphics/Paint;->descent()F

    move-result v3

    add-float/2addr v2, v3

    iget-object v3, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->n:Landroid/graphics/Paint;

    .line 7
    invoke-virtual {p1, v0, v1, v2, v3}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    goto :goto_0

    :cond_0
    const-string p1, "ESFloatingActionButton"

    const-string v0, "Custom text array not long enough."

    .line 8
    invoke-static {p1, v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    :goto_0
    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->a:Z

    return p0
.end method

.method static synthetic a(Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->F:Z

    return p1
.end method

.method private b(F)F
    .locals 1

    const/high16 v0, 0x42c80000    # 100.0f

    div-float/2addr p1, v0

    const/high16 v0, 0x43b40000    # 360.0f

    mul-float p1, p1, v0

    return p1
.end method

.method static synthetic b(Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;)F
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->f:F

    return p0
.end method

.method private b()V
    .locals 4

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->K:Z

    .line 3
    new-instance v0, Landroid/graphics/Paint;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Landroid/graphics/Paint;-><init>(I)V

    iput-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->m:Landroid/graphics/Paint;

    .line 4
    sget-object v2, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->m:Landroid/graphics/Paint;

    iget v2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->p:I

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->m:Landroid/graphics/Paint;

    iget v2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->q:F

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 7
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0, v1}, Landroid/graphics/Paint;-><init>(I)V

    iput-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->n:Landroid/graphics/Paint;

    .line 8
    sget-object v2, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->n:Landroid/graphics/Paint;

    sget-object v2, Landroid/graphics/Paint$Align;->CENTER:Landroid/graphics/Paint$Align;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->n:Landroid/graphics/Paint;

    iget v2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->s:I

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->n:Landroid/graphics/Paint;

    invoke-virtual {p0}, Landroid/widget/ImageButton;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    iget v3, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->t:F

    invoke-static {v2, v3}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$f;->a(Landroid/content/res/Resources;F)F

    move-result v2

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 12
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0, v1}, Landroid/graphics/Paint;-><init>(I)V

    iput-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->o:Landroid/graphics/Paint;

    .line 13
    sget-object v1, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 14
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->o:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Align;->LEFT:Landroid/graphics/Paint$Align;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 15
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->o:Landroid/graphics/Paint;

    iget v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->s:I

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 16
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->o:Landroid/graphics/Paint;

    invoke-virtual {p0}, Landroid/widget/ImageButton;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    iget v2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->t:F

    iget v3, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->u:F

    mul-float v2, v2, v3

    invoke-static {v1, v2}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$f;->a(Landroid/content/res/Resources;F)F

    move-result v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    return-void
.end method

.method private b(Landroid/graphics/Canvas;)V
    .locals 17

    move-object/from16 v0, p0

    .line 17
    invoke-virtual/range {p0 .. p0}, Landroid/widget/ImageButton;->getWidth()I

    move-result v1

    .line 18
    invoke-virtual/range {p0 .. p0}, Landroid/widget/ImageButton;->getHeight()I

    move-result v2

    .line 19
    invoke-direct/range {p0 .. p0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->getIconWidth()I

    move-result v3

    .line 20
    invoke-direct/range {p0 .. p0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->getIconHeight()I

    move-result v4

    .line 21
    iget-object v5, v0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->A:Landroid/graphics/Bitmap;

    if-nez v5, :cond_0

    .line 22
    invoke-virtual/range {p0 .. p0}, Landroid/widget/ImageButton;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    iget v6, v0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->z:I

    invoke-static {v5, v6}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v5

    iput-object v5, v0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->A:Landroid/graphics/Bitmap;

    .line 23
    :cond_0
    iget-object v5, v0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->A:Landroid/graphics/Bitmap;

    if-eqz v5, :cond_3

    .line 24
    invoke-virtual {v5}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v5

    .line 25
    iget-object v6, v0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->A:Landroid/graphics/Bitmap;

    invoke-virtual {v6}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v6

    int-to-double v7, v5

    int-to-double v9, v3

    const-wide v11, 0x3fe999999999999aL    # 0.8

    .line 26
    invoke-static {v9, v10}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v9, v9, v11

    cmpg-double v5, v7, v9

    if-gez v5, :cond_1

    double-to-int v3, v9

    :cond_1
    int-to-double v5, v6

    int-to-double v7, v4

    .line 27
    invoke-static {v7, v8}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v7, v7, v11

    cmpg-double v9, v5, v7

    if-gez v9, :cond_2

    double-to-int v4, v7

    :cond_2
    int-to-double v5, v3

    const-wide/high16 v7, 0x4000000000000000L    # 2.0

    .line 28
    invoke-static {v7, v8}, Ljava/lang/Math;->sqrt(D)D

    move-result-wide v9

    invoke-static {v5, v6}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v5, v5, v9

    div-double/2addr v5, v7

    double-to-int v13, v5

    int-to-double v3, v4

    .line 29
    invoke-static {v7, v8}, Ljava/lang/Math;->sqrt(D)D

    move-result-wide v5

    invoke-static {v3, v4}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v3, v3, v5

    div-double/2addr v3, v7

    double-to-int v14, v3

    sub-int/2addr v1, v13

    .line 30
    div-int/lit8 v15, v1, 0x2

    sub-int/2addr v2, v14

    .line 31
    div-int/lit8 v16, v2, 0x2

    .line 32
    iget-object v10, v0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->A:Landroid/graphics/Bitmap;

    move-object/from16 v9, p1

    move v11, v15

    move/from16 v12, v16

    invoke-static/range {v9 .. v16}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$f;->a(Landroid/graphics/Canvas;Landroid/graphics/Bitmap;IIIIII)V

    :cond_3
    return-void
.end method

.method private c()V
    .locals 8

    .line 4
    invoke-virtual {p0}, Landroid/widget/ImageButton;->getWidth()I

    move-result v0

    .line 5
    invoke-virtual {p0}, Landroid/widget/ImageButton;->getHeight()I

    move-result v1

    .line 6
    invoke-direct {p0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->getDiameter()F

    move-result v2

    .line 7
    new-instance v3, Landroid/graphics/RectF;

    int-to-float v0, v0

    sub-float v4, v0, v2

    const/high16 v5, 0x40000000    # 2.0f

    div-float/2addr v4, v5

    iget v6, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->r:F

    add-float/2addr v4, v6

    int-to-float v1, v1

    sub-float v7, v1, v2

    div-float/2addr v7, v5

    add-float/2addr v7, v6

    add-float/2addr v0, v2

    div-float/2addr v0, v5

    sub-float/2addr v0, v6

    add-float/2addr v1, v2

    div-float/2addr v1, v5

    sub-float/2addr v1, v6

    invoke-direct {v3, v4, v7, v0, v1}, Landroid/graphics/RectF;-><init>(FFFF)V

    iput-object v3, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->l:Landroid/graphics/RectF;

    return-void
.end method

.method private c(Landroid/graphics/Canvas;)V
    .locals 8

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->m:Landroid/graphics/Paint;

    iget v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->i:I

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 3
    iget-object v3, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->l:Landroid/graphics/RectF;

    iget-object v7, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->m:Landroid/graphics/Paint;

    const/4 v4, 0x0

    const/high16 v5, 0x43b40000    # 360.0f

    const/4 v6, 0x0

    move-object v2, p1

    invoke-virtual/range {v2 .. v7}, Landroid/graphics/Canvas;->drawArc(Landroid/graphics/RectF;FFZLandroid/graphics/Paint;)V

    return-void
.end method

.method static synthetic c(Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->F:Z

    return p0
.end method

.method private d()V
    .locals 4

    const/4 v0, 0x0

    .line 15
    iput v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->f:F

    .line 16
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->L:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$d;

    if-eqz v0, :cond_0

    .line 17
    invoke-virtual {v0}, Landroid/view/animation/Animation;->cancel()V

    goto :goto_0

    .line 18
    :cond_0
    new-instance v0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$d;

    iget v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->v:I

    iget v2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->f:F

    const/high16 v3, 0x3f800000    # 1.0f

    invoke-direct {v0, p0, v1, v2, v3}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$d;-><init>(Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;IFF)V

    iput-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->L:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$d;

    .line 19
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->L:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$d;

    invoke-virtual {p0, v0}, Landroid/widget/ImageButton;->startAnimation(Landroid/view/animation/Animation;)V

    .line 20
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->O:Ljava/lang/Runnable;

    invoke-virtual {p0, v0}, Landroid/widget/ImageButton;->removeCallbacks(Ljava/lang/Runnable;)Z

    .line 21
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->O:Ljava/lang/Runnable;

    iget v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->v:I

    int-to-long v1, v1

    invoke-virtual {p0, v0, v1, v2}, Landroid/widget/ImageButton;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void
.end method

.method private d(Landroid/graphics/Canvas;)V
    .locals 6

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->j:Ljava/text/DecimalFormat;

    iget v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->g:F

    iget v2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->f:F

    mul-float v1, v1, v2

    float-to-double v1, v1

    invoke-virtual {v0, v1, v2}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;

    move-result-object v0

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->n:Landroid/graphics/Paint;

    invoke-static {v1, v0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$f;->a(Landroid/graphics/Paint;Ljava/lang/String;)I

    move-result v1

    .line 4
    iget-object v2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->o:Landroid/graphics/Paint;

    iget-object v3, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->b:Ljava/lang/String;

    invoke-static {v2, v3}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$f;->a(Landroid/graphics/Paint;Ljava/lang/String;)I

    move-result v2

    add-int v3, v1, v2

    .line 5
    invoke-direct {p0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->getIconWidth()I

    move-result v4

    int-to-float v3, v3

    int-to-float v4, v4

    div-float/2addr v3, v4

    const v4, 0x3f4ccccd    # 0.8f

    cmpl-float v3, v3, v4

    if-lez v3, :cond_0

    .line 6
    iget v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->t:F

    mul-float v1, v1, v4

    invoke-virtual {p0, v1}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->setTextSize(F)V

    .line 7
    iget-object v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->n:Landroid/graphics/Paint;

    invoke-static {v1, v0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$f;->a(Landroid/graphics/Paint;Ljava/lang/String;)I

    move-result v1

    .line 8
    iget-object v2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->o:Landroid/graphics/Paint;

    iget-object v3, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->b:Ljava/lang/String;

    invoke-static {v2, v3}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$f;->a(Landroid/graphics/Paint;Ljava/lang/String;)I

    move-result v2

    .line 9
    :cond_0
    invoke-virtual {p0}, Landroid/widget/ImageButton;->getWidth()I

    move-result v3

    div-int/lit8 v3, v3, 0x2

    div-int/lit8 v4, v2, 0x2

    sub-int/2addr v3, v4

    int-to-float v3, v3

    .line 10
    invoke-virtual {p0}, Landroid/widget/ImageButton;->getHeight()I

    move-result v4

    div-int/lit8 v4, v4, 0x2

    int-to-float v4, v4

    iget-object v5, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->n:Landroid/graphics/Paint;

    invoke-virtual {v5}, Landroid/graphics/Paint;->descent()F

    move-result v5

    add-float/2addr v4, v5

    iget-object v5, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->n:Landroid/graphics/Paint;

    .line 11
    invoke-virtual {p1, v0, v3, v4, v5}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 12
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->b:Ljava/lang/String;

    invoke-virtual {p0}, Landroid/widget/ImageButton;->getWidth()I

    move-result v3

    div-int/lit8 v3, v3, 0x2

    sub-int/2addr v1, v2

    div-int/lit8 v1, v1, 0x2

    add-int/2addr v3, v1

    int-to-float v1, v3

    .line 13
    invoke-virtual {p0}, Landroid/widget/ImageButton;->getHeight()I

    move-result v2

    div-int/lit8 v2, v2, 0x2

    int-to-float v2, v2

    iget-object v3, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->n:Landroid/graphics/Paint;

    invoke-virtual {v3}, Landroid/graphics/Paint;->descent()F

    move-result v3

    add-float/2addr v2, v3

    iget-object v3, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->o:Landroid/graphics/Paint;

    .line 14
    invoke-virtual {p1, v0, v1, v2, v3}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    return-void
.end method

.method static synthetic d(Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->e()V

    return-void
.end method

.method static synthetic e(Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;)Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->D:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;

    return-object p0
.end method

.method private e()V
    .locals 7

    .line 5
    iget-boolean v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->a:Z

    if-eqz v0, :cond_2

    .line 6
    iget-boolean v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->B:Z

    const/4 v1, -0x1

    if-nez v0, :cond_0

    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->z:I

    if-eq v0, v1, :cond_0

    goto :goto_0

    .line 7
    :cond_0
    iget-boolean v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->B:Z

    if-eqz v0, :cond_2

    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->z:I

    if-eq v0, v1, :cond_2

    iget-boolean v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->C:Z

    if-eqz v0, :cond_2

    .line 8
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->D:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;

    if-nez v0, :cond_1

    .line 9
    new-instance v0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;

    const/4 v3, 0x0

    const/high16 v4, 0x43b40000    # 360.0f

    invoke-virtual {p0}, Landroid/widget/ImageButton;->getWidth()I

    move-result v1

    int-to-float v1, v1

    const/high16 v2, 0x40000000    # 2.0f

    div-float v5, v1, v2

    invoke-virtual {p0}, Landroid/widget/ImageButton;->getHeight()I

    move-result v1

    int-to-float v1, v1

    div-float v6, v1, v2

    move-object v1, v0

    move-object v2, p0

    invoke-direct/range {v1 .. v6}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;-><init>(Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;FFFF)V

    iput-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->D:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;

    .line 10
    iget v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->E:I

    int-to-long v1, v1

    invoke-virtual {v0, v1, v2}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 11
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->P:Ljava/lang/Runnable;

    invoke-virtual {p0, v0}, Landroid/widget/ImageButton;->removeCallbacks(Ljava/lang/Runnable;)Z

    .line 12
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->P:Ljava/lang/Runnable;

    iget v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->M:I

    int-to-long v1, v1

    invoke-virtual {p0, v0, v1, v2}, Landroid/widget/ImageButton;->postDelayed(Ljava/lang/Runnable;J)Z

    nop

    :cond_2
    return-void
.end method

.method private e(Landroid/graphics/Canvas;)V
    .locals 8

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->m:Landroid/graphics/Paint;

    const/16 v1, 0xff

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 3
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->e:F

    iget v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->f:F

    mul-float v5, v0, v1

    .line 4
    iget-object v3, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->l:Landroid/graphics/RectF;

    iget v4, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->c:F

    iget-object v7, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->m:Landroid/graphics/Paint;

    const/4 v6, 0x0

    move-object v2, p1

    invoke-virtual/range {v2 .. v7}, Landroid/graphics/Canvas;->drawArc(Landroid/graphics/RectF;FFZLandroid/graphics/Paint;)V

    return-void
.end method

.method private getDiameter()F
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->getRamViewWidth()I

    move-result v0

    invoke-virtual {p0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->getRamViewHeight()I

    move-result v1

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v0

    int-to-float v0, v0

    return v0
.end method

.method private getDimensionSize()I
    .locals 3

    .line 1
    :try_start_0
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->N:I

    const/4 v1, 0x1

    if-eq v0, v1, :cond_0

    .line 2
    invoke-virtual {p0}, Landroid/widget/ImageButton;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f070083

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v0

    return v0

    .line 3
    :cond_0
    invoke-virtual {p0}, Landroid/widget/ImageButton;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f070082

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return v0

    :catch_0
    nop

    .line 4
    invoke-super {p0}, Landroid/widget/ImageButton;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getMinimumWidth()I

    move-result v0

    mul-int/lit8 v0, v0, 0x2

    int-to-float v0, v0

    .line 5
    invoke-virtual {p0}, Landroid/widget/ImageButton;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const/high16 v2, 0x40400000    # 3.0f

    invoke-static {v1, v2}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$f;->a(Landroid/content/res/Resources;F)F

    move-result v1

    sub-float/2addr v0, v1

    float-to-int v0, v0

    .line 6
    invoke-virtual {p0}, Landroid/widget/ImageButton;->getWidth()I

    move-result v1

    if-le v0, v1, :cond_1

    .line 7
    invoke-virtual {p0}, Landroid/widget/ImageButton;->getWidth()I

    move-result v0

    :cond_1
    return v0
.end method

.method private getIconHeight()I
    .locals 3

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->H:I

    if-nez v0, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->getRamViewHeight()I

    move-result v0

    int-to-float v0, v0

    iget v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->r:F

    sub-float/2addr v0, v1

    iget v2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->q:F

    sub-float/2addr v0, v2

    sub-float/2addr v0, v1

    float-to-int v0, v0

    iput v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->H:I

    .line 3
    :cond_0
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->H:I

    return v0
.end method

.method private getIconWidth()I
    .locals 3

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->G:I

    if-nez v0, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->getRamViewWidth()I

    move-result v0

    int-to-float v0, v0

    iget v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->r:F

    sub-float/2addr v0, v1

    iget v2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->q:F

    sub-float/2addr v0, v2

    sub-float/2addr v0, v1

    float-to-int v0, v0

    iput v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->G:I

    .line 3
    :cond_0
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->G:I

    return v0
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 30
    iget-boolean v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->a:Z

    if-eqz v0, :cond_0

    .line 31
    new-instance v0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$c;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$c;-><init>(Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;)V

    .line 32
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    :cond_0
    return-void
.end method

.method public a(F)V
    .locals 1

    const/4 v0, 0x1

    .line 29
    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->a(FZ)V

    return-void
.end method

.method public a(FFZ)V
    .locals 1

    .line 9
    iget-boolean v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->a:Z

    if-nez v0, :cond_2

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->D:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;

    if-eqz v0, :cond_0

    .line 11
    invoke-virtual {v0}, Landroid/view/animation/Animation;->cancel()V

    .line 12
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->L:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$d;

    if-eqz v0, :cond_1

    .line 13
    invoke-virtual {v0}, Landroid/view/animation/Animation;->cancel()V

    .line 14
    :cond_1
    invoke-virtual {p0}, Landroid/widget/ImageButton;->clearAnimation()V

    :cond_2
    div-float p2, p1, p2

    .line 15
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->y:F

    cmpl-float v0, p2, v0

    if-ltz v0, :cond_3

    const/4 v0, 0x1

    goto :goto_0

    :cond_3
    const/4 v0, 0x0

    :goto_0
    iput-boolean v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->B:Z

    if-eqz v0, :cond_4

    .line 16
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->x:Landroid/content/res/ColorStateList;

    invoke-virtual {p0, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setBackgroundTintList(Landroid/content/res/ColorStateList;)V

    goto :goto_1

    .line 17
    :cond_4
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->w:Landroid/content/res/ColorStateList;

    invoke-virtual {p0, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setBackgroundTintList(Landroid/content/res/ColorStateList;)V

    :goto_1
    const/high16 v0, 0x42c80000    # 100.0f

    mul-float p2, p2, v0

    .line 18
    invoke-direct {p0, p2}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->b(F)F

    move-result p2

    iput p2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->e:F

    .line 19
    iput p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->g:F

    if-eqz p3, :cond_5

    .line 20
    invoke-direct {p0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->d()V

    goto :goto_2

    :cond_5
    const/high16 p1, 0x3f800000    # 1.0f

    .line 21
    iput p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->f:F

    .line 22
    invoke-virtual {p0}, Landroid/widget/ImageButton;->invalidate()V

    .line 23
    :goto_2
    iget-boolean p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->C:Z

    if-nez p1, :cond_7

    .line 24
    iget p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->z:I

    const/4 p2, -0x1

    if-eq p1, p2, :cond_7

    iget-boolean p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->B:Z

    if-nez p1, :cond_7

    .line 25
    iget-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->D:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;

    if-eqz p1, :cond_6

    .line 26
    invoke-virtual {p1}, Landroid/view/animation/Animation;->cancel()V

    .line 27
    :cond_6
    invoke-virtual {p0}, Landroid/widget/ImageButton;->clearAnimation()V

    :cond_7
    return-void
.end method

.method public a(FZ)V
    .locals 1

    const/high16 v0, 0x42c80000    # 100.0f

    .line 28
    invoke-virtual {p0, p1, v0, p2}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->a(FFZ)V

    return-void
.end method

.method public getCenter()Landroid/graphics/PointF;
    .locals 3

    .line 1
    new-instance v0, Landroid/graphics/PointF;

    invoke-virtual {p0}, Landroid/widget/ImageButton;->getWidth()I

    move-result v1

    div-int/lit8 v1, v1, 0x2

    int-to-float v1, v1

    invoke-virtual {p0}, Landroid/widget/ImageButton;->getHeight()I

    move-result v2

    div-int/lit8 v2, v2, 0x2

    int-to-float v2, v2

    invoke-direct {v0, v1, v2}, Landroid/graphics/PointF;-><init>(FF)V

    return-object v0
.end method

.method public getPhase()F
    .locals 1

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->f:F

    return v0
.end method

.method public getRamViewHeight()I
    .locals 1

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->J:I

    if-nez v0, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->getDimensionSize()I

    move-result v0

    iput v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->J:I

    .line 3
    :cond_0
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->J:I

    return v0
.end method

.method public getRamViewWidth()I
    .locals 1

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->I:I

    if-nez v0, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->getDimensionSize()I

    move-result v0

    iput v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->I:I

    .line 3
    :cond_0
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->I:I

    return v0
.end method

.method public getRingColor()I
    .locals 1

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->p:I

    return v0
.end method

.method public getRingStrokeWidth()F
    .locals 1

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->q:F

    return v0
.end method

.method public getStepSize()F
    .locals 1

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->d:F

    return v0
.end method

.method public getTextColor()I
    .locals 1

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->s:I

    return v0
.end method

.method public getValue()F
    .locals 1

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->g:F

    return v0
.end method

.method protected onDetachedFromWindow()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->onDetachedFromWindow()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->A:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    const/4 v0, 0x0

    .line 4
    iput-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->A:Landroid/graphics/Bitmap;

    :cond_0
    return-void
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 2

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->a:Z

    if-eqz v0, :cond_3

    .line 2
    iget-boolean v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->K:Z

    if-nez v0, :cond_0

    const/4 v0, 0x1

    .line 3
    iput-boolean v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->K:Z

    .line 4
    invoke-direct {p0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->c()V

    .line 5
    :cond_0
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->c(Landroid/graphics/Canvas;)V

    .line 6
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->e(Landroid/graphics/Canvas;)V

    .line 7
    iget-boolean v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->F:Z

    if-eqz v0, :cond_2

    .line 8
    iget-boolean v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->h:Z

    if-eqz v0, :cond_4

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->k:[Ljava/lang/String;

    if-eqz v0, :cond_1

    .line 10
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->a(Landroid/graphics/Canvas;)V

    goto :goto_0

    .line 11
    :cond_1
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->d(Landroid/graphics/Canvas;)V

    goto :goto_0

    .line 12
    :cond_2
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->z:I

    const/4 v1, -0x1

    if-eq v0, v1, :cond_4

    .line 13
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->b(Landroid/graphics/Canvas;)V

    goto :goto_0

    .line 14
    :cond_3
    invoke-super {p0, p1}, Landroid/widget/ImageButton;->onDraw(Landroid/graphics/Canvas;)V

    :cond_4
    :goto_0
    return-void
.end method

.method public setAnimDuration(I)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->v:I

    return-void
.end method

.method public setCustomText([Ljava/lang/String;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->k:[Ljava/lang/String;

    return-void
.end method

.method public setDimAlpha(I)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->i:I

    return-void
.end method

.method public setDrawText(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->h:Z

    return-void
.end method

.method public setFormatDigits(I)V
    .locals 3

    .line 1
    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    const/4 v1, 0x0

    :goto_0
    if-ge v1, p1, :cond_1

    if-nez v1, :cond_0

    const-string v2, "."

    .line 2
    invoke-virtual {v0, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :cond_0
    const-string v2, "0"

    .line 3
    invoke-virtual {v0, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 4
    :cond_1
    new-instance p1, Ljava/text/DecimalFormat;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "###,###,###,##0"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p1, v0}, Ljava/text/DecimalFormat;-><init>(Ljava/lang/String;)V

    iput-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->j:Ljava/text/DecimalFormat;

    return-void
.end method

.method public setIsRamAnimView(Z)V
    .locals 1

    .line 1
    iput-boolean p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->a:Z

    if-nez p1, :cond_3

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->D:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;

    if-eqz p1, :cond_0

    .line 3
    invoke-virtual {p1}, Landroid/view/animation/Animation;->cancel()V

    .line 4
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->L:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$d;

    if-eqz p1, :cond_1

    .line 5
    invoke-virtual {p1}, Landroid/view/animation/Animation;->cancel()V

    .line 6
    :cond_1
    iget p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->f:F

    const/high16 v0, 0x3f800000    # 1.0f

    cmpl-float p1, p1, v0

    if-eqz p1, :cond_2

    .line 7
    invoke-virtual {p0, v0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->setPhase(F)V

    .line 8
    :cond_2
    invoke-virtual {p0}, Landroid/widget/ImageButton;->clearAnimation()V

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->O:Ljava/lang/Runnable;

    invoke-virtual {p0, p1}, Landroid/widget/ImageButton;->removeCallbacks(Ljava/lang/Runnable;)Z

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->P:Ljava/lang/Runnable;

    invoke-virtual {p0, p1}, Landroid/widget/ImageButton;->removeCallbacks(Ljava/lang/Runnable;)Z

    :cond_3
    return-void
.end method

.method public setNeedRotateWhenWarn(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->C:Z

    return-void
.end method

.method public setNormalColor(Landroid/content/res/ColorStateList;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->w:Landroid/content/res/ColorStateList;

    return-void
.end method

.method public setNullTextImageResId(I)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->z:I

    return-void
.end method

.method public setPhase(F)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->f:F

    .line 2
    invoke-virtual {p0}, Landroid/widget/ImageButton;->invalidate()V

    return-void
.end method

.method public setRingColor(I)V
    .locals 1

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->p:I

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->m:Landroid/graphics/Paint;

    invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColor(I)V

    return-void
.end method

.method public setRingMargin(F)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->r:F

    return-void
.end method

.method public setRingStrokeWidth(I)V
    .locals 1

    .line 1
    invoke-virtual {p0}, Landroid/widget/ImageButton;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    int-to-float p1, p1

    invoke-static {v0, p1}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$f;->a(Landroid/content/res/Resources;F)F

    move-result p1

    iput p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->q:F

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->m:Landroid/graphics/Paint;

    invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    return-void
.end method

.method public setStartAngle(F)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->c:F

    return-void
.end method

.method public setStepSize(F)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->d:F

    return-void
.end method

.method public setTextColor(I)V
    .locals 1

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->s:I

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->n:Landroid/graphics/Paint;

    invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColor(I)V

    return-void
.end method

.method public setTextSize(F)V
    .locals 3

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->t:F

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->n:Landroid/graphics/Paint;

    invoke-virtual {p0}, Landroid/widget/ImageButton;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    iget v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->t:F

    invoke-static {v0, v1}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$f;->a(Landroid/content/res/Resources;F)F

    move-result v0

    invoke-virtual {p1, v0}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->o:Landroid/graphics/Paint;

    invoke-virtual {p0}, Landroid/widget/ImageButton;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    iget v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->t:F

    iget v2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->u:F

    mul-float v1, v1, v2

    invoke-static {v0, v1}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$f;->a(Landroid/content/res/Resources;F)F

    move-result v0

    invoke-virtual {p1, v0}, Landroid/graphics/Paint;->setTextSize(F)V

    return-void
.end method

.method public setUnit(Ljava/lang/String;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->b:Ljava/lang/String;

    return-void
.end method

.method public setUnitTextSizePercent(F)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->u:F

    return-void
.end method

.method public setVisibility(I)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->setVisibility(I)V

    .line 2
    iget-boolean p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->a:Z

    if-nez p1, :cond_3

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->D:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;

    if-eqz p1, :cond_0

    .line 4
    invoke-virtual {p1}, Landroid/view/animation/Animation;->cancel()V

    .line 5
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->L:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$d;

    if-eqz p1, :cond_1

    .line 6
    invoke-virtual {p1}, Landroid/view/animation/Animation;->cancel()V

    .line 7
    :cond_1
    iget p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->f:F

    const/high16 v0, 0x3f800000    # 1.0f

    cmpl-float p1, p1, v0

    if-eqz p1, :cond_2

    .line 8
    invoke-virtual {p0, v0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->setPhase(F)V

    .line 9
    :cond_2
    invoke-virtual {p0}, Landroid/widget/ImageButton;->clearAnimation()V

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->O:Ljava/lang/Runnable;

    invoke-virtual {p0, p1}, Landroid/widget/ImageButton;->removeCallbacks(Ljava/lang/Runnable;)Z

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->P:Ljava/lang/Runnable;

    invoke-virtual {p0, p1}, Landroid/widget/ImageButton;->removeCallbacks(Ljava/lang/Runnable;)Z

    :cond_3
    return-void
.end method

.method public setWarnColor(Landroid/content/res/ColorStateList;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->x:Landroid/content/res/ColorStateList;

    return-void
.end method

.method public setWarnPercent(F)V
    .locals 2

    const/high16 v0, 0x42c80000    # 100.0f

    cmpl-float v1, p1, v0

    if-lez v1, :cond_0

    div-float/2addr p1, v0

    .line 1
    :cond_0
    iput p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->y:F

    return-void
.end method
